import { FormSchema } from '@/components/Form';

export const bannerFormSchema: FormSchema[] = [
  {
    required: true,
    field: 'bannerImage',
    label: 'banner图',
    slot: 'bannerImage',
  },
  {
    field: 'bannerUrl',
    component: 'Input',
    label: '跳转地址',
    componentProps: {
      placeholder: '/pages/index/index?id=1',
    },
  },
  {
    field: 'footerImage',
    label: '落地页图',
    slot: 'footerImage',
  },
];

export const jinGangFormSchema: FormSchema[] = [
  {
    required: true,
    field: 'imgUrl',
    label: '主图',
    slot: 'imgUrl',
  },
  {
    field: 'title',
    required: true,
    component: 'Input',
    label: '标题名称',
  },
  {
    field: 'jumpUrl',
    required: true,
    component: 'Input',
    label: '跳转地址',
    componentProps: {
      placeholder: '/pages/index/index?id=1',
    },
  },
];

export enum Source {
  BANNER = 'banner',
  // JIN_GANG = 'jinGang',
}
